﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E8F RID: 3727
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonBuffReforgeSelectInfo : IMessage<RogueCommonBuffReforgeSelectInfo>, IMessage, IEquatable<RogueCommonBuffReforgeSelectInfo>, IDeepCloneable<RogueCommonBuffReforgeSelectInfo>, IBufferMessage
	{
		// Token: 0x17002F43 RID: 12099
		// (get) Token: 0x0600A6FB RID: 42747 RVA: 0x001C2C43 File Offset: 0x001C0E43
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonBuffReforgeSelectInfo> Parser
		{
			get
			{
				return RogueCommonBuffReforgeSelectInfo._parser;
			}
		}

		// Token: 0x17002F44 RID: 12100
		// (get) Token: 0x0600A6FC RID: 42748 RVA: 0x001C2C4A File Offset: 0x001C0E4A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonBuffReforgeSelectInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002F45 RID: 12101
		// (get) Token: 0x0600A6FD RID: 42749 RVA: 0x001C2C5C File Offset: 0x001C0E5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonBuffReforgeSelectInfo.Descriptor;
			}
		}

		// Token: 0x0600A6FE RID: 42750 RVA: 0x001C2C63 File Offset: 0x001C0E63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonBuffReforgeSelectInfo()
		{
		}

		// Token: 0x0600A6FF RID: 42751 RVA: 0x001C2C76 File Offset: 0x001C0E76
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonBuffReforgeSelectInfo(RogueCommonBuffReforgeSelectInfo other) : this()
		{
			this.selectHintId_ = other.selectHintId_;
			this.selectBuffs_ = other.selectBuffs_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A700 RID: 42752 RVA: 0x001C2CAC File Offset: 0x001C0EAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonBuffReforgeSelectInfo Clone()
		{
			return new RogueCommonBuffReforgeSelectInfo(this);
		}

		// Token: 0x17002F46 RID: 12102
		// (get) Token: 0x0600A701 RID: 42753 RVA: 0x001C2CB4 File Offset: 0x001C0EB4
		// (set) Token: 0x0600A702 RID: 42754 RVA: 0x001C2CBC File Offset: 0x001C0EBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SelectHintId
		{
			get
			{
				return this.selectHintId_;
			}
			set
			{
				this.selectHintId_ = value;
			}
		}

		// Token: 0x17002F47 RID: 12103
		// (get) Token: 0x0600A703 RID: 42755 RVA: 0x001C2CC5 File Offset: 0x001C0EC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueCommonBuff> SelectBuffs
		{
			get
			{
				return this.selectBuffs_;
			}
		}

		// Token: 0x0600A704 RID: 42756 RVA: 0x001C2CCD File Offset: 0x001C0ECD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonBuffReforgeSelectInfo);
		}

		// Token: 0x0600A705 RID: 42757 RVA: 0x001C2CDC File Offset: 0x001C0EDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonBuffReforgeSelectInfo other)
		{
			return other != null && (other == this || (this.SelectHintId == other.SelectHintId && this.selectBuffs_.Equals(other.selectBuffs_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A706 RID: 42758 RVA: 0x001C2D2C File Offset: 0x001C0F2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SelectHintId != 0U)
			{
				num ^= this.SelectHintId.GetHashCode();
			}
			num ^= this.selectBuffs_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A707 RID: 42759 RVA: 0x001C2D79 File Offset: 0x001C0F79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A708 RID: 42760 RVA: 0x001C2D81 File Offset: 0x001C0F81
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A709 RID: 42761 RVA: 0x001C2D8C File Offset: 0x001C0F8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.selectBuffs_.WriteTo(ref output, RogueCommonBuffReforgeSelectInfo._repeated_selectBuffs_codec);
			if (this.SelectHintId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.SelectHintId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A70A RID: 42762 RVA: 0x001C2DDC File Offset: 0x001C0FDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SelectHintId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SelectHintId);
			}
			num += this.selectBuffs_.CalculateSize(RogueCommonBuffReforgeSelectInfo._repeated_selectBuffs_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A70B RID: 42763 RVA: 0x001C2E30 File Offset: 0x001C1030
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonBuffReforgeSelectInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SelectHintId != 0U)
			{
				this.SelectHintId = other.SelectHintId;
			}
			this.selectBuffs_.Add(other.selectBuffs_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A70C RID: 42764 RVA: 0x001C2E7D File Offset: 0x001C107D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A70D RID: 42765 RVA: 0x001C2E88 File Offset: 0x001C1088
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.SelectHintId = input.ReadUInt32();
					}
				}
				else
				{
					this.selectBuffs_.AddEntriesFrom(ref input, RogueCommonBuffReforgeSelectInfo._repeated_selectBuffs_codec);
				}
			}
		}

		// Token: 0x040043DE RID: 17374
		private static readonly MessageParser<RogueCommonBuffReforgeSelectInfo> _parser = new MessageParser<RogueCommonBuffReforgeSelectInfo>(() => new RogueCommonBuffReforgeSelectInfo());

		// Token: 0x040043DF RID: 17375
		private UnknownFieldSet _unknownFields;

		// Token: 0x040043E0 RID: 17376
		public const int SelectHintIdFieldNumber = 12;

		// Token: 0x040043E1 RID: 17377
		private uint selectHintId_;

		// Token: 0x040043E2 RID: 17378
		public const int SelectBuffsFieldNumber = 1;

		// Token: 0x040043E3 RID: 17379
		private static readonly FieldCodec<RogueCommonBuff> _repeated_selectBuffs_codec = FieldCodec.ForMessage<RogueCommonBuff>(10U, RogueCommonBuff.Parser);

		// Token: 0x040043E4 RID: 17380
		private readonly RepeatedField<RogueCommonBuff> selectBuffs_ = new RepeatedField<RogueCommonBuff>();
	}
}
